package tech.aistar.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import tech.aistar.entity.Programming;
import tech.aistar.service.IProgrammingService;

import java.util.List;

@Controller
//@RequestMapping("/parper")
public class ProgrammingAction {

    @Autowired
    public IProgrammingService programmingService;
//
//    @RequestMapping("/programe")
//    public String Programming(Model model , Long parperId){
//        List<Programming> programmingList = programmingService.findById(1L);
//        Programming programmingList = programmingService.findById(parperId);
//        List<Programming> all = programmingService.findAll();
//        List<Programming> byPaperId = programmingService.findByPaperId(1L);
//        model.addAttribute("programmingList",byPaperId);
//        return "programe";
//    }

}
